package com.hzw.dao;

import com.hzw.bean.ArticleDetail;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

@Repository
public interface ArticleDetailMapper extends Mapper<ArticleDetail> {
    int deleteArticleDetail(String articleId);

    ArticleDetail selectArticleDetailByArticleId(String articleId);

    int addCommentNumByArticleId(String articleId);

    int updateLikeNum(@Param("articleId") String articleId, @Param("count") int count);

    int updateChargeNum(@Param("articleId") String articleId, @Param("count") int count);

    int updateTranspondNum(@Param("articleId") String articleId, @Param("count") int count);

    int updateReadNum(@Param("articleId") String articleId, @Param("count") int count);

    int updateCommentNumByArticleId(@Param("articleId") String articleId, @Param("count") int count);
}